import numpy as np


def main():
    # 数组的拼接
    t1 = np.array([[0, 1, 2, 3, 4, 5],
                   [6, 7, 8, 9, 10, 11]])
    t2 = np.array([[12, 13, 14, 15, 16, 17],
                   [18, 19, 20, 21, 22, 23]])

    print(np.vstack((t1, t2))) #竖直拼接

    print(np.hstack((t1, t2))) #水平拼接


if __name__ == '__main__':
    main()
